package com.itheima.admin.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@TableName("ad_channel")
@ApiModel(description = "频道实例")
public class AdChannel {

    @TableId(value = "id" , type = IdType.AUTO)
    @ApiModelProperty(notes = "主键",dataType = "Integer")
    private Integer id;

    @TableField(value = "name")
    @ApiModelProperty(notes = "频道名称", dataType = "string")
    private String name;

    @TableField(value = "description")
    @ApiModelProperty(notes = "描述信息", dataType = "string")
    private String description;

    @TableField(value = "is_default")
    @ApiModelProperty(notes = "是否为默认", dataType = "boolean")
    private Boolean isDefault;

    @TableField(value = "status")
    @ApiModelProperty(notes = "状态值", dataType = "boolean")
    private Boolean status;

    @TableField(value = "ord")
    @ApiModelProperty(notes = "排序" , dataType = "boolean")
    private Boolean ord;

    @TableField(value = "created_time")
    @ApiModelProperty(notes = "创建时间", dataType = "date")
    private Date createdTime;


}
